using Castle.ActiveRecord;

namespace KenEgozi.Com.Domain.Aggregates.Common
{
	[ActiveRecord("Blogroll")]
	public class BlogrollEntry
	{
		private readonly int _id = default(int);
		private string _title;
		private string _href;
		private readonly Lifecycle _lifecycle = new Lifecycle();

		[PrimaryKey(Access = PropertyAccess.NosetterLowercaseUnderscore)]
		public int Id
		{
			get { return _id; }
		}

		[Property]
		public string Title
		{
			get { return _title; }
			set { _title = value; }
		}
		[Property]
		public string Href
		{
			get { return _href; }
			set { _href = value; }
		}

		[Nested(Access=PropertyAccess.NosetterLowercaseUnderscore)]
		public Lifecycle Lifecycle
		{
			get { return _lifecycle; }
		}
	}
}
